package come.example.pagetransformer.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentStatePagerAdapter
import come.example.pagetransformer.fragment.TtFragment

class TtFragmentPagerAdapter(fm: FragmentManager, list: List<TtFragment>) : FragmentStatePagerAdapter(fm) {
    private var mList = listOf<TtFragment>()

    init {
        mList = list
    }

    override fun getItem(i: Int): Fragment {
        return mList[i]
    }

    override fun getCount(): Int {
        return mList.size
    }
}
